﻿@{
    ViewBag.Title = "Home";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>MyCryptoChat</h2>
<div style="margin-bottom: 20px;">Chat with friends without anyone spying on what you say!</div>

<form method="POST" action="/Home/NewRoom">
    <label for="nbMinutesToLive">Lifetime of the chat room:</label>
    <select id="nbMinutesToLive" name="nbMinutesToLive">
        <option value="3">3 minutes</option>
        <option value="15">15 minutes</option>
        <option value="30" selected="selected">30 minutes</option>
        <option value="60">1 hour</option>
        <option value="180">3 hours</option>
        <option value="360">6 hours</option>
        <option value="560">9 hours</option>
        <option value="720">12 hours</option>
        <option value="1440">24 hours</option>
    </select><br /><br />
    <input type="checkbox" name="selfDestroys" id="selfDestroys" value="true"/> <label for="selfDestroys" style="font-weight: normal; display:inline; font-size: 1.0em;">Self-destroys if more than one visitor</label><br /><br />
    <input type="submit" value="Create a new chat room" />
</form>